<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <style>
        * {
            margin: 0 auto;
            padding: 0;
        }

        div {
            width: 400px;
            margin-top: 100px;
            border: 1px solid gray;
            border-radius: 5px;
        }

        table {
            border: 0;
        }

        td {
            height: 50px;
        }
    </style>
</head>
<body>
<h2>
    <div th:text="${SPRING_SECURITY_LAST_EXCEPTION}">
        <p th:text="${SPRING_SECURITY_LAST_EXCEPTION}" style="width: 300px; word-wrap:break-word; word-break:break-all; overflow: hidden;"></p>
    </div>
</h2>
<div>
    <form method="post" th:action="doLogin">
        <table>
            <tr>
                <td colspan="2">
                    <h2 style="text-align: center">登 录</h2>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="height: 15px">
                    <span></span>
                </td>
            </tr>
            <tr>
                <td>
                    用户名：
                </td>
                <td>
                    <input type="text" name="username" style="width: 200px; height: 25px; text-indent: 1em">
                </td>
            </tr>
            <tr>
                <td>
                    密&nbsp;&nbsp;&nbsp;码：
                </td>
                <td>
                    <input type="password" name="password" style="width: 200px; height: 25px; text-indent: 1em">
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center">
                    <input type="submit" value="登 录" style="width: 200px; height: 35px; background-color: burlywood; border: 0">
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
